import http from '@/service/http'
import type * as T from '@/types/api/index'
const routerApi: T.IRouterApi = {
  roleList() {
    return http.post('/admin/Route/list')
  },
  allList() {
    return http.post('/admin/Route/allList')
  },
  add(data) {
    return http.post('/admin/Route/add', data)
  },
  edit(data) {
    return http.post('/admin/Route/edit', data)
  },
  del(data) {
    return http.post('/admin/Route/dels', data)
  },
  sort(data) {
    return http.post('/admin/Route/sort', data)
  }
}

export default routerApi
